package com.sneaker.shower.socket;

import com.sneaker.shower.socket.feature.SignAble;

import java.util.Collection;

/**
 * <h1>Group</h1>
 * <pre>
 * @Description 组 - 逻辑概念
 * </pre>
 *
 * @Author lopo
 * @Date 2018/10/17
 */
public interface Group<T> extends SignAble, LifeCycle {
    /**
     * 获取该组下的元素集合
     *
     * @return
     */
    Collection<T> group();

    void add(T t);

    void remove(T t);
}
